package org.springframework.security.web;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * @author Dillon
 * @date 2024/6/30
 * @slogan 致敬大师 致敬未来的你
 * @desc springSecurity 重定向策略接口
 */
public interface RedirectStrategy {

	/**
	 * 发送重定向请求
	 *
	 * @param request  请求对象
	 * @param response 响应对象
	 * @param url      请求URL
	 * @throws IOException 执行异常
	 */
	void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url) throws IOException;

}
